﻿/// -----------------------------------------------------------------
/// Relation.cs: Object view of a Segment Relation entry in the Database.
/// License: see http://mve.codeplex.com/license; All Rights follows the MS-PL
/// Current owner: shiniwa
/// The project decription: please refer to http://codeplex.com/mve/
/// -----------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVEContentSvc.RelationsOperations
{
    /*
     * 日本SGI株式会社
     * ヨハンソン・ヘンリク
     * johansson@sgi.co.jp
     * Project: MVEPublicService
     * 
     * Comments:
     *      No Comments.
     * 
     * Change Log:
     * ---------------------------------------------------------------------------
     * 1/8/2009 11:14:56 AM		Johansson Henrik		Class Created.
     * 
     */

    /// <summary>
    /// Object view of a Segment Relation entry in the Database.
    /// Use this class to represent a single Segment Relation from the Databse.
    /// </summary>
    /// <seealso cref="RelationLoader"/>
    /// <remarks>INSERT:Creds</remarks>
    internal class Relation : IComparable<Relation>
    {
        public int segment1Id { get; set; }
        public int segment2Id { get; set; }
        public byte relation { get; set; }
        public int Id { get; set; }

        #region IComparable<Relation> Members

        public int CompareTo(Relation other)
        {
            return this.Id.CompareTo(other.Id);
        }

        #endregion
    }
}
